<!DOCTYPE html>
<html>
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>商品类型管理</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
	<meta name="viewport" content="initial-scale=1.0,user-scalable=no,width=device-width,height=device-height" />
	
	<!-- 通用文件引入 -->
	<#include "../../common/base.html"/>    
	<script type="text/javascript" charset="utf-8" src="${webRoot!}/js/bus/bus-shop-type/shop-type.js"></script>
	<script type="text/javascript">
		$(function(){
		    ShopType.path = '${webRoot!}';
		    ShopType.render();
		});
	</script>

</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">

        <!-- Panel Columns & Select -->
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>商品类别</h5>
                <div class="ibox-tools">
                    <a class="collapse-link">
                        <i class="fa fa-chevron-up"></i>
                    </a>
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-wrench"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-user">
                        <li><a href="#">选项1</a>
                        </li>
                        <li><a href="#">选项2</a>
                        </li>
                    </ul>
                    <a class="close-link">
                        <i class="fa fa-times"></i>
                    </a>
                </div>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
					<div class="example-wrap">
                            <div class="example">
                                <div class="btn-group" id="shop-type-buttons" role="group" style="display: block;">
                                    <button type="button" class="btn btn-outline btn-default" onclick="ShopType.addShopTypeDialog('root','根节点')">
                                        <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>添加类别
                                    </button>
                                </div>
                                <table id="shop-type-table" data-url="${webRoot!}/busShopType/shopTypeList.do" data-side-pagination="server" data-mobile-responsive="true" data-page-list="[10, 20, 50, 100, 200]"  data-toolbar="shop-type-buttons" data-detail-view="true" data-detail-formatter="ShopType.detailFormatter" data-click-to-select="true" data-pagination="true" data-search="true" data-show-refresh="true">
									<thead>
										<tr>
											<th data-field="stName" data-align="left" data-width="200">商品类别名称</th>
											<th data-field="stSort" data-align="center" data-width="60">排序</th>
											<th data-field="stStatus" data-align="center" data-width="100" data-formatter="ShopType.statusFormatter">状态</th>
											<th data-field="stId" data-width="150" data-align="center" data-formatter="ShopType.operator">操作</th>
										</tr>
									</thead>
								</table>
                            </div>
                        </div>
                </div>
            </div>
        </div>
        <!-- End Panel Columns & Select -->
        <div id="dialog"></div>
     </div>
     
</body>

</html>
